python update existing json file